package com.hao.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author chenwenhao
 * @version 1.0.0
 * @ClassName EduApplication.java
 * @Description TODO
 * @createTime 2020/11/19,20:23
 *      @ComponentScan(basePackages = {"com.hao"})  : 扫描自身和其他模块所有的包
 *      @EnableDiscoveryClient : nacos注册中心
 *      @EnableFeignClients : 调用端使用feign
 */
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.hao"})
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
